<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/5/23 0023
 * Time: 上午 10:09
 */

namespace Apps\Common\Enum;


class Delete extends Enum
{

    const DELETE = 'Y';

    const NOTDELETE = 'N';

    public static function valuesExplain()
    {
        return [
            'Y'=>'已删除',
            'N'=>'正常'
        ];
    }
    public static function valueToStr($v)
    {
        $data = self::valuesExplain();
        if(isset($data[strval($v)])) {
            return $data[strval($v)];
        }
        return '';
    }

}